﻿<UserControl x:Class="GroupChallengeWP7.Views.QuestionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             FontFamily="{StaticResource PhoneFontFamilyNormal}"
             FontSize="{StaticResource PhoneFontSizeNormal}"
             xmlns:vm="clr-namespace:GroupChallengeWP7"
             d:DesignHeight="480"
             d:DesignWidth="480">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="1"
              Name="AnswerGrid">
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Button Grid.Row="0"
                    Grid.Column="0"
                    Content="1"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Click="AnswerButtonClick" />
            <TextBlock Grid.Row="0"
                       Grid.Column="1"
                       TextWrapping="Wrap"
                       VerticalAlignment="Center"
                       Margin="6 0"
                       Text="{Binding Path=Answer1}" />
            <Button  Grid.Row="1"
                     Grid.Column="0"
                     Content="2"
                     HorizontalAlignment="Center"
                     VerticalAlignment="Center"
                     Click="AnswerButtonClick" />
            <TextBlock Grid.Row="1"
                       Grid.Column="1"
                       TextWrapping="Wrap"
                       VerticalAlignment="Center"
                       Margin="6 0"
                       Text="{Binding Path=Answer2}" />
            <Button Grid.Row="2"
                    Grid.Column="0"
                    Content="3"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Click="AnswerButtonClick" />
            <TextBlock Grid.Row="2"
                       Grid.Column="1"
                       TextWrapping="Wrap"
                       VerticalAlignment="Center"
                       Margin="6 0"
                       Text="{Binding Path=Answer3}" />
            <Button Grid.Row="3"
                    Grid.Column="0"
                    Content="4"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    Click="AnswerButtonClick" />
            <TextBlock Grid.Row="3"
                       Grid.Column="1"
                       TextWrapping="Wrap"
                       VerticalAlignment="Center"
                       Margin="6 0"
                       Text="{Binding Path=Answer4}" />
        </Grid>
        <TextBlock Name="QuestionTextBlock"
                   TextWrapping="Wrap"
                   Text="{Binding Path=QuestionText}"
                   Margin="0 0 6 0" />
    </Grid>
</UserControl>
